Skip to content

Conversation

@zoldar
Copy link
Contributor

@zoldar zoldar commented Dec 16, 2024

Changes

This logic will be soon revised (and replaced) once we commence with implementing teams support.

This is a fix for a regression where Admin role update under Site Settings > People is failing due to wrong mapping.

@zoldar zoldar requested a review from aerosol December 16, 2024 17:59
@zoldar zoldar added the preview label Dec 16, 2024
@github-actions
Copy link

Preview environment👷🏼‍♀️🏗️
PR-4910

</div>

<%= if membership.role == :admin do %>
<%= if membership.role == "admin" do %>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently membership.role type here is inconsistent - for owner, it's an atom, for the rest, it's a string. We'll correct that on subsequent rewrite.

@zoldar zoldar enabled auto-merge December 16, 2024 18:05
@zoldar zoldar added this pull request to the merge queue Dec 16, 2024
Merged via the queue into master with commit 2938936 Dec 16, 2024
8 checks passed
@zoldar zoldar deleted the fix/update-role-wrong-role-name branch December 16, 2024 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants